<?php

namespace app\index\dao;

use app\common\model\LawCaseDays;
use ShidianUtil\Thinkphp\Dao\DaoTrait;

/**
 * LawCaseDaysDao 数据访问对象
 * Class LawCaseDaysDao
 * @package app\index\dao
 * @method LawCaseDays findByPK(?int $id, $field = true)
 * @method \think\Collection selectAll(?int $page, ?int $page_size, $field = true)
 * @method LawCaseDays insertActive(array $params, array $allow_field = [])
 * @method LawCaseDays updateActive(LawCaseDays $model, array $params, array $allow_field = [])
 * @method LawCaseDays findAndUpdateActive(int $id, array $params, array $allow_field = [])
 * @method LawCaseDays updateActiveByClosure(\Closure $closure, array $params, array $allow_field = [])
 * @method void deleteModel(LawCaseDays $model)
 * @method void deleteById(int|array|\Closure $id, bool $force = false)
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037579
 * @link https://www.kancloud.cn/manual/think-orm/1257998
 * @link https://www.kancloud.cn/thinkphp/master-database-and-model/265551
 */
class LawCaseDaysDao
{
    use DaoTrait;

    /**
     * @var LawCaseDays
     */
    private $baseModel;

    /**
     * LawCaseDaysDao constructor.
     */
    public function __construct()
    {
        $this->baseModel = LawCaseDays::class;
    }

    public function selectOptions()
    {
        return LawCaseDays::order('ord', 'ASC')
            ->order('id', 'DESC')
            ->select();
    }

}
